package com.xy.modular.owner.service.impl;

import com.xy.framework.base.dao.IBaseDao;
import com.xy.framework.base.service.BaseServiceImpl;
import com.xy.framework.exceptions.ValidateParamException;
import com.xy.modular.owner.dao.OwnerHouseMapper;
import com.xy.modular.owner.model.OwnerHouse;
import com.xy.modular.owner.service.IOwnerHouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * Created by BCK on 2019/09/14.
 */
@Service("ownerHouseService")
public class OwnerHouseServiceImpl extends BaseServiceImpl<OwnerHouse, String> implements IOwnerHouseService {

	@Autowired
	private OwnerHouseMapper ownerHouseMapper;

	@SuppressWarnings("rawtypes")
	@Override
	protected IBaseDao getBaseDao() {
		return this.ownerHouseMapper;
	}

	public void validateEntity(OwnerHouse ownerHouse) throws ValidateParamException {
		// TODO Auto-generated method stub
	}

	@Override
	public OwnerHouse getByOwnerId(String authId) {
		return ownerHouseMapper.getByOwnerId(authId);
	}
}
